import quadTree.BoundingBox;
import engine.Force;
import engine.Vector;
import junit.framework.TestCase;


public class ForceTest extends TestCase {
	
	
	public void testForces()
	{
		Force f1 = new Force(new Vector(1,1), new Vector(1,1), 5);
		
		assertTrue(f1.getDir().equals(new Vector(1,1)));
		
		assertTrue(f1.getRange()==5);
		
		assertTrue(f1.getPos().equals(new Vector(1,1)));
		
		f1.setPos(new Vector(2,2));
		f1.setDir(new Vector(3,3));
		assertTrue(f1.getDir().equals(new Vector(3,3)));
		assertTrue(f1.getPos().equals(new Vector(2,2)));
		
		BoundingBox test = f1.getForceBox();
		
		
		assertTrue(test.getHeight()==10);
		assertTrue(test.getWidth()==10);
				
	}
	
	
	public static void main(String args[])
	{
		
		ForceTest ft = new ForceTest();
		ft.testForces();
		
	}
}
